#include <iostream>
using namespace std;
int main(){
	double store[10000];
	int size;
	cout<<"How many values would you like to enter?"<<endl;
	cin>>size;
	system("cls");
	cout<<"Enter the values:"<<endl;
	for(int counter=0; counter<size; counter++){
		cin>>store[counter];
	}
	system("cls");
	double lowest;
	double temp;
	int swap;
	for(int counter2=0; counter2<size; counter2++){
		lowest=store[counter2];
		for(int counter3=counter2; counter3<size; counter3++){
			if (store[counter3]<lowest){
				lowest=store[counter3];
				swap=counter3;
			}
		}
		temp=store[counter2];
		store[counter2]=lowest;
		store[swap]=temp;
	}
	for(int counter4=0; counter4<size; counter4++){
		cout<<store[counter4]<<endl;
	}
	system("pause");
}

		
			